|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Macros | |
| #define | SLAVE_ADDRESS 0x48 |
Functions | |
| void | main () |
| void | USCI_B0_ISR (void) |
Variables | |
| uint8_t | store [40] = { 9, 10, 11, 12, 13, 14, 15, 16, 17, 18} |
| uint8_t * | receivedDataPointer |
| #define SLAVE_ADDRESS 0x48 |
This example shows how to configure the I2C module as a slave for multi byte reception. The address of the slave module is set in this example
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 63 of file usci_b_i2c_ex2_slaveRxMultiple.c.
| void main | ( | void | ) |
Definition at line 69 of file usci_b_i2c_ex2_slaveRxMultiple.c.
References __no_operation(), receivedDataPointer, SLAVE_ADDRESS, and store.
| void USCI_B0_ISR | ( | void | ) |
Definition at line 125 of file usci_b_i2c_ex2_slaveRxMultiple.c.
References __bic_SR_register_on_exit(), and receivedDataPointer.
| uint8_t* receivedDataPointer |
Definition at line 67 of file usci_b_i2c_ex2_slaveRxMultiple.c.
Referenced by main(), and USCI_B0_ISR().
| uint8_t store[40] = { 9, 10, 11, 12, 13, 14, 15, 16, 17, 18} |
Definition at line 66 of file usci_b_i2c_ex2_slaveRxMultiple.c.
Referenced by main().